<?php
namespace Tbf\Error;
use Tbf\Util\HttpUtil;
/**
 * @deprecated
 */
class FatalErrorTo500Handle extends Handle{
    function handle(){
        register_shutdown_function(array($this,'errorHandleFunc'));
    }
    function errorHandleFunc(){
        if (error_get_last()){
            HttpUtil::sendResponseCode(500);
        }
    }
}
